{% extends 'Z/base.html' %}
{% load common_extras %}
{% load static %}

{% block link %}
    <link rel="stylesheet" href="{% static 'css/Z/article_detail.css' %}">
{% endblock %}

{% block title %}
    {{ article.title }}
{% endblock %}

{% block header %}
{% include 'Z/header.html' %}
{% endblock %}

{% block main %}
    <div class="content">
    <div class="left-box">
        <span>作者:{{ article.user.username }}</span>
        <span>发布时间:{{ article.creat_time|time_since }}</span>
    </div>
    <div class="right-box">
        <div>
            <span>分类</span>
            <span class="tag">{{ article.classes }}</span>
        </div>
        {% if labels %}
        <span>文章标签</span>
            {% for i in labels %}
            <span class="tag">
            {{ i.name }}
            </span>
            {% endfor %}

        {% endif %} 
        
        <div class="info">
            <h1>{{ article.title }}</h1>
        </div>
        <div class="article">
            {{ article.content }}
        </div>
    </div>
    </div>
{% endblock %}



